python string argument without an encoding

51

python string argument without an encoding -

You do not do bytes("bla bla") 
or just b"bla bla", you need to 
specify an encoding type like bytes("bla bla","utf-8") 
because it needs to know what was the original encoding
before turning it into an array of numbers.

Comments

Submit
0 Comments